include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${EXTRA_INCLUDES})

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable(undistort undistort.cpp)

message(${PCL_COMMON_LIBRARIES} ========================== ${PCL_IO_LIBRARIES})

target_include_directories(undistort PUBLIC ${CMAKE_SOURCE_DIR}/include ${EXTRA_INCLUDES})
target_include_directories(undistort PUBLIC ${OpenCV_INCLUDE_DIRS})

target_link_libraries(undistort PUBLIC yaml-cpp)
target_link_libraries(undistort PUBLIC spdlog::spdlog_header_only)
target_link_libraries(undistort PUBLIC ${OpenCV_LIBS})
target_link_libraries(undistort PUBLIC ${PCL_LIBRARIES})
target_link_libraries(undistort PUBLIC ${${PCL_COMMON_LIBRARIES}})
target_link_libraries(undistort PUBLIC ${${PCL_IO_LIBRARIES}})
target_link_libraries(undistort PUBLIC ${EXTRA_LIBS})
target_link_directories(undistort PUBLIC ${EXTRA_LIBS})
